package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 资产看管单元对象 ac_custodial_unit
 *
 * @author ruoyi
 * @date 2025-04-07
 */
public class AcCustodialUnit extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 看管单元唯一标识 */
    private String unitId;

    /** 看管单元名称 */
    @Excel(name = "看管单元名称")
    private String unitName;

    /** 单元类型(物业公司/管理处/项目部等) */
    @Excel(name = "单元类型(物业公司/管理处/项目部等)")
    private String unitType;

    /** 上级看管单元ID */
    @Excel(name = "上级看管单元ID")
    private String parentUnitId;

    /** 负责人姓名 */
    @Excel(name = "负责人姓名")
    private String responsiblePerson;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String contactPhone;

    /** 电子邮箱 */
    @Excel(name = "电子邮箱")
    private String email;

    /** 办公地址 */
    @Excel(name = "办公地址")
    private String address;

    /** 管辖区域 */
    @Excel(name = "管辖区域")
    private String jurisdictionArea;

    /** 成立日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "成立日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date establishmentDate;

    /** 状态(1-正常 0-停用) */
    @Excel(name = "状态(1-正常 0-停用)")
    private Long status;

    /** 描述信息 */
    @Excel(name = "描述信息")
    private String description;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 部门ID */
    @Excel(name = "部门ID")
    private Long deptId;

    public void setUnitId(String unitId)
    {
        this.unitId = unitId;
    }

    public String getUnitId()
    {
        return unitId;
    }
    public void setUnitName(String unitName)
    {
        this.unitName = unitName;
    }

    public String getUnitName()
    {
        return unitName;
    }
    public void setUnitType(String unitType)
    {
        this.unitType = unitType;
    }

    public String getUnitType()
    {
        return unitType;
    }
    public void setParentUnitId(String parentUnitId)
    {
        this.parentUnitId = parentUnitId;
    }

    public String getParentUnitId()
    {
        return parentUnitId;
    }
    public void setResponsiblePerson(String responsiblePerson)
    {
        this.responsiblePerson = responsiblePerson;
    }

    public String getResponsiblePerson()
    {
        return responsiblePerson;
    }
    public void setContactPhone(String contactPhone)
    {
        this.contactPhone = contactPhone;
    }

    public String getContactPhone()
    {
        return contactPhone;
    }
    public void setEmail(String email)
    {
        this.email = email;
    }

    public String getEmail()
    {
        return email;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }
    public void setJurisdictionArea(String jurisdictionArea)
    {
        this.jurisdictionArea = jurisdictionArea;
    }

    public String getJurisdictionArea()
    {
        return jurisdictionArea;
    }
    public void setEstablishmentDate(Date establishmentDate)
    {
        this.establishmentDate = establishmentDate;
    }

    public Date getEstablishmentDate()
    {
        return establishmentDate;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("unitId", getUnitId())
            .append("unitName", getUnitName())
            .append("unitType", getUnitType())
            .append("parentUnitId", getParentUnitId())
            .append("responsiblePerson", getResponsiblePerson())
            .append("contactPhone", getContactPhone())
            .append("email", getEmail())
            .append("address", getAddress())
            .append("jurisdictionArea", getJurisdictionArea())
            .append("establishmentDate", getEstablishmentDate())
            .append("status", getStatus())
            .append("description", getDescription())
            .append("delFlag", getDelFlag())
            .append("deptId", getDeptId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
